﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WL_Store.Model
{
    /// <summary>
    /// 退款信息实体模型
    /// </summary>
  public   class RefundModel
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string orderID { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        public int commodityId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string comName { get; set; }
        /// <summary>
        /// 商品类别Id
        /// </summary>
        public int categoryId { get; set; }
        /// <summary>
        /// 商品类别
        /// </summary>
        public string category { get; set; }
        /// <summary>
        /// 交易金额
        /// </summary>
        public double transactionAmount { get; set; }
        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime tradingHour { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public double refundMoney { get; set; }
        /// <summary>
        /// 退款数量
        /// </summary>
        public double refundAmount { get; set; }
        /// <summary>
        /// 退款状态
        /// </summary>
        public bool state { get; set; }

        public string stateString
        {
            get {
                return state ? "已退款" : "未退款";
            }
        }
        /// <summary>
        /// 说明
        /// </summary>
        public string explain { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool isDelete { get; set; }

        public string isDeleteString {
            get {
                return isDelete ? "已删除" : "未删除";
            }
        }

    }
}
